<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <body>

        <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                        template="./AdminTemplate.xhtml">
            <ui:define name="Title">
                <title>Payment</title>
            </ui:define>

            <ui:define name="content">
                <h:form>
                    <div class="grid_2">
                        <div class="da-panel collapsible">
                            <div class="da-panel-header">
                                <span class="da-panel-title">
                                    <img src="images/icons/color/blog.png"/>
                                    Order Details
                                </span>

                                <span class="da-panel-toggler"></span></div>
                            <div class="da-panel-toolbar top">
                                <ul>
                                    <h:form>
                                        <li>
                                            <h:commandLink >
                                                <img src="images/icons/color/pencil.png"/>Update
                                            </h:commandLink>
                                        </li>
                                        <li>
                                            <h:commandLink>
                                                <img src="images/icons/color/coins.png"/>Send Mail
                                            </h:commandLink>
                                        </li>
                                    </h:form>
                                </ul>
                            </div>
                            <div class="da-panel-content">
                                <c:set value="#{adminVihicleBean.ordpayment}" var="od"/>

                                <table class="da-table da-detail-view">
                                    <tbody>
                                        <tr class="odd">
                                            <th>Customer Name</th>
                                            <td>#{od.cusFullName}</td>
                                        </tr>
                                        <tr class="even">
                                            <th>Address</th>
                                            <td>#{od.address}</td>
                                        </tr>
                                        <tr class="odd">
                                            <th>Email</th>
                                            <td>#{od.email}</td>
                                        </tr>
                                        <tr class="even">
                                            <th>Phone</th>
                                            <td>#{od.phoneNumber}</td>
                                        </tr>
                                        <tr class="odd">
                                            <th>Comments</th>
                                            <td>#{od.comments}</td>
                                        </tr>
                                        <tr class="even">
                                            <th>Vehicle ID</th>
                                            <td>#{od.vehicleID}</td>
                                        </tr>
                                        <tr class="even">
                                            <th>Vehicle Name:</th>
                                            <td>#{adminVihicleBean.vehipayment.vehilceName}</td>
                                        </tr>
                                        <tr class="odd">
                                            <th>Quantity</th>
                                            <td>#{od.quantity}</td>
                                        </tr>
                                        <tr class="even">
                                            <th>Price</th>
                                            <td><span class="null">$ #{od.price}</span></td>
                                        </tr>

                                        <tr class="odd">
                                            <th>Employee Name :</th>
                                            <td>#{adminVihicleBean.emp.fullName}</td>
                                        </tr>
                                        <tr class="odd">
                                            <th>Date Regis</th>
                                            <td>#{od.dateRegis}</td>
                                        </tr>
                                        <!--                                    <tr class="even">
                                                                                <th>Date Order</th>
                                                                                <td>{od.dateOrder}</td>
                                                                            </tr>
                                                                            <tr class="odd">
                                                                                <th>Status</th>
                                                                                <c:if test="{od.status==0}">
                                                                                    <td><span class="null">Not Delivery</span></td>
                                                                                </c:if>
                                                                                <c:if test="{od.status==1}">
                                                                                    <td><span class="null">Delivery</span></td>
                                                                                </c:if>
                                                                            </tr>-->

                                        <tr class="odd">
                                            <th colspan="2" style=" text-align: center " >
                                                <h:commandButton value="Payment" action="#{adminVihicleBean.paymentOrder}"/>
                                            </th>

                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </h:form>
            </ui:define>

        </ui:composition>

    </body>
</html>
